package com.property.biz.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.property.biz.HomemakeBiz;
import com.property.dao.HomemakeDao;
import com.property.entity.Homemake;

@Service("homemakeBiz")
@Scope("prototype")
public class HomemakeBizImpl implements HomemakeBiz{
	@Autowired
	private HomemakeDao homemakeDao;

	public List<Homemake> getHomemake(int id,String name1, Integer index, Integer size) {
		return homemakeDao.getHomemake(id,name1, index, size);
	}

	public Homemake getbyId(int id) {
	
		return homemakeDao.getbyId(id);
	}

	public void delete(int id) {
	homemakeDao.delete(id);
		
	}

	public int comCount(String name1, int id) {
	
		return homemakeDao.comCount(name1, id);
	}

	public void updateHomemake(Homemake homemake) {
		homemakeDao.updateHomemake(homemake);
		
	}

	

	public void addHomemake(Homemake homemake) {
		homemakeDao.addHomemake(homemake);
		
	}
}
